/**
 * 
 */
package com.leyu.mall.site.base.controller;

import java.util.Collections;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ModelAttribute;

import com.leyu.mall.common.facade.ICmsChannelFacade;

/**
 * @author change
 *
 */
public abstract class HeaderController {
	@Autowired
	protected ICmsChannelFacade cmsChannelFacade;
	
	@ModelAttribute("list")
	public List createChannelList(){
		try {
			return cmsChannelFacade.getDisplayChannelList();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return Collections.EMPTY_LIST;
	}
}
